package com.smxy.mall.model.request.car;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;


import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@ApiModel()
@Data
public class CarReq {
    @Min(value = 1,message = "店铺id无效")
    @NotNull(message = "店铺id不能为空")
    private Integer shopId;
    @Min(value = 1,message = "商品id无效")
    @NotNull(message = "商品id不能为空")
    private Integer goodsId;
    @Min(value = 1,message = "数量不能小于1")
    @NotNull(message = "数量不能为空")
    private Integer num;
}
